<form id="catalog_form" method="POST" onsubmit="sendAndPost(); return false;">
<table class='table table-no-border'>
    <tr class='control-group <?php echo ($catalog_form['name']->hasError())?"error":"" ?>'>
        <th><?php echo $catalog_form['name']->renderLabel(null, array("class" => "control-label")) ?></th>
        <td>
            <?php echo $catalog_form['name']->render(); ?> 
			<?php if ($catalog_form['name']->hasError()): ?>
				<div><span class="label label-important"><?php echo $catalog_form['name']->getError() ?></span></div>
			<?php endif; ?>
			
        </td>
	</tr>
	<tr>
		<th><?php echo $catalog_form['is_active']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['is_active'] ?>
        </td>
    </tr>    
    <tr>
        <th><label><?php echo __('Parent Catalog')?></label></th>
        <td>
			<script src="/js/jquery/treeview/jquery.treeview.js" type="text/javascript"></script>
			<script src="/js/jquery/treeview/jquery.treeview.async.js" type="text/javascript"></script>
			<script src="/js/jquery/treeview/jquery.treeview.edit.js" type="text/javascript"></script>
			<script src="/js/jquery/treeview/admin-categories-tree.js" type="text/javascript"></script>
			<script type="text/javascript">
				var inputName = "id_parent";
				var selectedCat = "1"
				var selectedLabel = 'selected';
				var home = 'Home';
				var use_radio = 1;
			</script>
			<link type="text/css" rel="stylesheet" href="/css/jquery.treeview.css" />
			
			<div id="treeview">
				<div style="background-color:#F4E6C9; width:99%;padding:5px 0 5px 5px;">
					<a href="#" id="collapse_all" ><?php echo __('Collapse All') ?></a>
					 - <a href="#" id="expand_all" ><?php echo __('Expand All') ?></a>
				</div>
				
				<ul id="categories-treeview" class="filetree">
					<li id="1" class="hasChildren">
						<span class="folder"> <input type="radio" name="id_parent" value="1" checked onclick="clickOnCategoryBox($(this));" /> <?php echo __('Home') ?></span>
						<ul>
							<li><span class="placeholder">&nbsp;</span></li>	
						</ul>
					</li>
				</ul>
			</div>
		</td>
    </tr>
    <tr>
        <th><?php echo $catalog_form['description']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['description'] ?>
        </td>
    </tr>
    <tr>
        <th><?php echo $catalog_form['image']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['image'] ?>
        </td>
    </tr>
    <tr>
        <th><?php echo $catalog_form['meta_title']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['meta_title'] ?>
        </td>
	</tr>
	<tr>
		<th><?php echo $catalog_form['meta_keywords']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['meta_keywords'] ?>
        </td>
    </tr>
    <tr>
        <th><?php echo $catalog_form['meta_description']->renderLabel() ?></th>
        <td>
            <?php echo $catalog_form['meta_description'] ?>
        </td>
    </tr>
    <tr>
		<td></td>
        <td><input type="submit" class='btn' value="<?php echo __('Save') ?>"></td>
    </tr>
</table>
</form>